﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using ConsoleApp1.Entity;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            using (AdminDb contexr = new AdminDb())
            {
                contexr.Database.Initialize(true);

                contexr.Users.Add(new User
                {
                    UserName = "admin",
                    Password = "123",
                    IsActived = true,
                    IsDeleted = false,
                    CreatedTime = DateTime.Now,
                    UpdateTime = DateTime.Now,
                    Remarks = "没有备注"
                });
                contexr.SaveChanges();
                Console.Read();
            }
        }
    }
}
